package com.beyond.po;

import java.util.ArrayList;
import java.util.List;

public class TGatePOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TGatePOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGateidIsNull() {
            addCriterion("gateID is null");
            return (Criteria) this;
        }

        public Criteria andGateidIsNotNull() {
            addCriterion("gateID is not null");
            return (Criteria) this;
        }

        public Criteria andGateidEqualTo(String value) {
            addCriterion("gateID =", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidNotEqualTo(String value) {
            addCriterion("gateID <>", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidGreaterThan(String value) {
            addCriterion("gateID >", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidGreaterThanOrEqualTo(String value) {
            addCriterion("gateID >=", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidLessThan(String value) {
            addCriterion("gateID <", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidLessThanOrEqualTo(String value) {
            addCriterion("gateID <=", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidLike(String value) {
            addCriterion("gateID like", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidNotLike(String value) {
            addCriterion("gateID not like", value, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidIn(List<String> values) {
            addCriterion("gateID in", values, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidNotIn(List<String> values) {
            addCriterion("gateID not in", values, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidBetween(String value1, String value2) {
            addCriterion("gateID between", value1, value2, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateidNotBetween(String value1, String value2) {
            addCriterion("gateID not between", value1, value2, "gateid");
            return (Criteria) this;
        }

        public Criteria andGateipIsNull() {
            addCriterion("gateIP is null");
            return (Criteria) this;
        }

        public Criteria andGateipIsNotNull() {
            addCriterion("gateIP is not null");
            return (Criteria) this;
        }

        public Criteria andGateipEqualTo(String value) {
            addCriterion("gateIP =", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipNotEqualTo(String value) {
            addCriterion("gateIP <>", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipGreaterThan(String value) {
            addCriterion("gateIP >", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipGreaterThanOrEqualTo(String value) {
            addCriterion("gateIP >=", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipLessThan(String value) {
            addCriterion("gateIP <", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipLessThanOrEqualTo(String value) {
            addCriterion("gateIP <=", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipLike(String value) {
            addCriterion("gateIP like", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipNotLike(String value) {
            addCriterion("gateIP not like", value, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipIn(List<String> values) {
            addCriterion("gateIP in", values, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipNotIn(List<String> values) {
            addCriterion("gateIP not in", values, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipBetween(String value1, String value2) {
            addCriterion("gateIP between", value1, value2, "gateip");
            return (Criteria) this;
        }

        public Criteria andGateipNotBetween(String value1, String value2) {
            addCriterion("gateIP not between", value1, value2, "gateip");
            return (Criteria) this;
        }

        public Criteria andGatesnIsNull() {
            addCriterion("gateSN is null");
            return (Criteria) this;
        }

        public Criteria andGatesnIsNotNull() {
            addCriterion("gateSN is not null");
            return (Criteria) this;
        }

        public Criteria andGatesnEqualTo(String value) {
            addCriterion("gateSN =", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnNotEqualTo(String value) {
            addCriterion("gateSN <>", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnGreaterThan(String value) {
            addCriterion("gateSN >", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnGreaterThanOrEqualTo(String value) {
            addCriterion("gateSN >=", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnLessThan(String value) {
            addCriterion("gateSN <", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnLessThanOrEqualTo(String value) {
            addCriterion("gateSN <=", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnLike(String value) {
            addCriterion("gateSN like", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnNotLike(String value) {
            addCriterion("gateSN not like", value, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnIn(List<String> values) {
            addCriterion("gateSN in", values, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnNotIn(List<String> values) {
            addCriterion("gateSN not in", values, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnBetween(String value1, String value2) {
            addCriterion("gateSN between", value1, value2, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatesnNotBetween(String value1, String value2) {
            addCriterion("gateSN not between", value1, value2, "gatesn");
            return (Criteria) this;
        }

        public Criteria andGatednIsNull() {
            addCriterion("gateDN is null");
            return (Criteria) this;
        }

        public Criteria andGatednIsNotNull() {
            addCriterion("gateDN is not null");
            return (Criteria) this;
        }

        public Criteria andGatednEqualTo(String value) {
            addCriterion("gateDN =", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednNotEqualTo(String value) {
            addCriterion("gateDN <>", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednGreaterThan(String value) {
            addCriterion("gateDN >", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednGreaterThanOrEqualTo(String value) {
            addCriterion("gateDN >=", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednLessThan(String value) {
            addCriterion("gateDN <", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednLessThanOrEqualTo(String value) {
            addCriterion("gateDN <=", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednLike(String value) {
            addCriterion("gateDN like", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednNotLike(String value) {
            addCriterion("gateDN not like", value, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednIn(List<String> values) {
            addCriterion("gateDN in", values, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednNotIn(List<String> values) {
            addCriterion("gateDN not in", values, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednBetween(String value1, String value2) {
            addCriterion("gateDN between", value1, value2, "gatedn");
            return (Criteria) this;
        }

        public Criteria andGatednNotBetween(String value1, String value2) {
            addCriterion("gateDN not between", value1, value2, "gatedn");
            return (Criteria) this;
        }

        public Criteria andCameraidIsNull() {
            addCriterion("cameraID is null");
            return (Criteria) this;
        }

        public Criteria andCameraidIsNotNull() {
            addCriterion("cameraID is not null");
            return (Criteria) this;
        }

        public Criteria andCameraidEqualTo(String value) {
            addCriterion("cameraID =", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidNotEqualTo(String value) {
            addCriterion("cameraID <>", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidGreaterThan(String value) {
            addCriterion("cameraID >", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidGreaterThanOrEqualTo(String value) {
            addCriterion("cameraID >=", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidLessThan(String value) {
            addCriterion("cameraID <", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidLessThanOrEqualTo(String value) {
            addCriterion("cameraID <=", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidLike(String value) {
            addCriterion("cameraID like", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidNotLike(String value) {
            addCriterion("cameraID not like", value, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidIn(List<String> values) {
            addCriterion("cameraID in", values, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidNotIn(List<String> values) {
            addCriterion("cameraID not in", values, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidBetween(String value1, String value2) {
            addCriterion("cameraID between", value1, value2, "cameraid");
            return (Criteria) this;
        }

        public Criteria andCameraidNotBetween(String value1, String value2) {
            addCriterion("cameraID not between", value1, value2, "cameraid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}